<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script type="text/javascript">
$("#"+tabId+" #sdate").datetimepicker({
    format: "yyyy-mm-dd",
    autoclose: true,
    todayBtn: true,
    minView: 2,
    language: 'zh-CN'
});
$("#"+tabId+" #edate").datetimepicker({
    format: "yyyy-mm-dd",
    autoclose: true,
    todayBtn: true,
    minView: 2,
    language: 'zh-CN',
});
$("#dataExporting").fadeOut();
	$("#"+tabId+" #dataExportBtn").click(function(){
		$("#dataExporting").fadeIn();
		$.get(contextPath+"/MedicalRecord/dataExport.dhc",{
			"dateFrom": $("#"+tabId+" #sdate").val(),
			"dateTo": $("#"+tabId+" #edate").val(),
		}).done(function(result){
			if(result.success){
				$("#dataExporting").fadeOut();
			}else{
				drgUI.error(result.errorMessage);
			}
		})
	})
</script>
</head>
<body>
<div class="col-xs-12">
	<div>
         <div  class="col-xs-2 to_left">选择时间：</div>
         <div class=" col-xs-3 to_left"  ><input id="sdate" value="2014-01-01"></div>
         <div class=" col-xs-1 to_left"  ><span style="margin-left:20px;">-</span></div>
         <div class=" col-xs-3 to_left"  ><input id="edate" value="2014-01-02"></div>
    </div>
    <div class="b"><button id="dataExportBtn" class="search"><i class="glyphicon glyphicon-search"></i>开始导出</button></div>
    <div id="dataExporting"><i class="icon-spinner icon-spin icon-4x"></i><br><font>正在导出，请稍候...</font></div>
</div>
</body>
</html>